import java.util.Scanner;

public class TableMover {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入年龄：");
        int age = scanner.nextInt(); // 假设一个年龄
        if (age >= 7){
            System.out.println("可以搬动桌子");
        }else if (age >= 5 ){
            System.out.print("输入性别：");
            String gender = scanner.next();
            if (gender.equals("男")) {
                System.out.println("可以搬动桌子");
            }else {
                System.out.println("不可以搬动桌子");
            }
        }else {
            System.out.println("不可以搬动桌子");
        }
    }
}